/**
 * http://usejsdoc.org/
 */

var mqtt = require('mqtt');

var client = mqtt.createClient(8080, '120.25.83.222', {clientId:'linyanwen', clean:false});

var num = 0;
setInterval(function () {
	client.publish('shansjlin', 'Hello mqtt ' + (num++),{qos:1, retain: true});
	console.log("publish topic shansjlin, num: ", num);
}, 5000);
